package rj.cometome;

public class Point3d {
	public final float x;
	public final float y;
	public final float z;
	public Point3d(float x, float y, float z) {
		this.x = x;
		this.y = y;
		this.z = z;
	}
	
	public Point3d(Point3d p) {
		this.x = p.x;
		this.y = p.y;
		this.z = p.z;
	}
	
	public Point3d(float[] f) {
		this.x = f[0];
		this.y = f[1];
		this.z = f[2];
	}
	
	public float[] getArray() {
		float[] rtn = new float[3];
		rtn[0] = this.x;
		rtn[1] = this.y;
		rtn[2] = this.z;
		return rtn;
	}
};
